import { ref } from 'vue'

export default function useDelete() {
    const deleteState = ref<{
        [key: string | number]: boolean
    }>({})

    function setDelete(id: string | number, state: boolean) {
        deleteState.value[id] = state
    }

    return {
        deleteState,
        setDelete
    }
}
